// 地址
import request from '@/api/request';
// 地址列表
function addressList(data) {
  return request({
    url: '/addons/xshop/user/getAddress',
    method: 'post',
    data
  })
}
//添加/修改地址
function editAddress(data) {
  return request({
    url: '/addons/xshop/user/editAddress',
    method: 'post',
    data
  })
}
// /addons/xshop/area/indexs
function areaList(data) {
  return request({
    url: '/addons/xshop/area/indexs',
    method: 'post',
    data
  })
}
//删除收货地址
function delAddress(data) {
  return request({
    url: '/addons/xshop/user/delAddress',
    method: 'post',
    data
  })
}
//默认收货地址
function moRen(data) {
  return request({
    url: '/addons/xshop/user/moRen',
    method: 'post',
    data
  })
}
// 收货地址信息
function addressInfo(data) {
  return request({
    url: '/addons/xshop/user/addressInfo',
    method: 'post',
    data
  })
}
export default {
  addressList,
  editAddress,
  delAddress,
  moRen,
  addressInfo,
  areaList
}